package com.xm.zcf.service.product;

import com.xm.zcf.domain.product.Product;
import com.xm.zcf.util.PageBean;

import java.util.List;

/**
 * Created by Administrator on 2017/3/20.
 */
public interface ProductService {
    List<Product> findAll();

    PageBean<Product> findPage(Integer page, Integer limit);

    Product findById(int pid);

    void save(Product model);

    List<Product> findHotProduct(int i);

    List<Product> findNewProducts(int i);

    PageBean<Product> findPageBean(Integer page, Integer limit, Integer cid);

    Product findByPid(Integer id);

    PageBean<Product> findCsPageBean(Integer page, Integer limit, Integer cSid);

}
